package model

import (
	"go.mongodb.org/mongo-driver/bson/primitive"
	"time"
)

type GroupChat struct {
	Id        primitive.ObjectID `bson:"_id,omitempty" json:"id"`
	TeamId    int64              `bson:"teamId" json:"teamId"`
	Name      string             `bson:"name" json:"name"`	
Avatar    string             `bson:"avatar" json:"avatar"`
	CreatedAt time.Time          `bson:"createdAt" json:"createdAt"`
}

func (c GroupChat) TableName() string {
	return "GroupChat"
}
